package com.easy.merchants.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 房子信息
 *
 * @author RuoYu
 * @date 2022/12/02
 */
@ApiModel("房子信息实体类")
@TableName("tb_house_information")
public class HouseInformation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键、房屋编码")
    @TableId("id")
    private Long id;

    @ApiModelProperty("创建人 商户id与user表关联")
    private Long houseOwner;

    @ApiModelProperty("分类id")
    private Long categoryId;

    @ApiModelProperty("房屋标题")
    private String title;

    @ApiModelProperty("封面图")
    private String img;

    @ApiModelProperty("房屋价格")
    private double price;

    @ApiModelProperty("房屋类型")
    private String houseType;

    @ApiModelProperty("面积大小")
    private double areaSize;

    @ApiModelProperty("类型：例如 普通住宅/小区房")
    private String type;

    @ApiModelProperty("地址")
    private String location;

    @ApiModelProperty("房源概述")
    private String summary;

    @ApiModelProperty("发布时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("状态：0：启用 1：停止 2：违规")
    private String status = "0";

    @ApiModelProperty("审核 0：通过 1：不通过")
    private String permissions = "0";

    @ApiModelProperty("逻辑删除标志 1:删除 0:未删除")
    private String deletedFlag = "0";

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getHouseOwner() {
        return houseOwner;
    }

    public void setHouseOwner(Long houseOwner) {
        this.houseOwner = houseOwner;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getHouseType() {
        return houseType;
    }

    public void setHouseType(String houseType) {
        this.houseType = houseType;
    }

    public double getAreaSize() {
        return areaSize;
    }

    public void setAreaSize(double areaSize) {
        this.areaSize = areaSize;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getPermissions() {
        return permissions;
    }

    public void setPermissions(String permissions) {
        this.permissions = permissions;
    }

    public String getDeletedFlag() {
        return deletedFlag;
    }

    public void setDeletedFlag(String deletedFlag) {
        this.deletedFlag = deletedFlag;
    }

    @Override
    public String toString() {
        return "HouseInformation{" +
                "id=" + id +
                ", houseOwner=" + houseOwner +
                ", categoryId=" + categoryId +
                ", title='" + title + '\'' +
                ", price=" + price +
                ", houseType='" + houseType + '\'' +
                ", areaSize=" + areaSize +
                ", type='" + type + '\'' +
                ", location='" + location + '\'' +
                ", summary='" + summary + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", status='" + status + '\'' +
                ", permissions='" + permissions + '\'' +
                ", deletedFlag='" + deletedFlag + '\'' +
                '}';
    }
}
